#ifndef _VIDEO_BLOB
#define _VIDEO_BLOB

#include "ofMain.h"
#include "ofCvMain.h"
#include "videoTexture.h"

class videoBlob {
	
	public:
	
	
		void set(ofCvBlob myBlob, ofCvColorImage myImage, ofCvGrayscaleImage myMask);
		void draw();
		void drawDiagnostically();
		void drawOutline();
		// these are both helpful for interaction:
		void draw(ofCvGrayscaleImage &mom, int color);
		bool pointInsideMe(float x, float y);
		
		
		void update();
		
		
		
		
		ofCvBlob 			blob;
		videoTexture 		myTexture;	
		
		//----------------------------------------- translating points
		ofPoint2f			pos;
		float 				angle;
		float 				scale;
		int					nPts;						
		ofPoint2f			pts[MAX_CONTOUR_LENGTH];
		ofPoint2f 			texPts[4];
		//-----------------------------------------
		
};

#endif	
